package com.ambow.service.impl;

import java.util.List;

import com.ambow.Entity.StockReceive;
import com.ambow.dao.StockDao;
import com.ambow.dao.StockReceiveDao;
import com.ambow.dao.impl.StockDaoImpl;
import com.ambow.dao.impl.StockReceiveDaoImpl;
import com.ambow.service.StockReceiveService;

public class StockReceiveServiceImpl implements StockReceiveService {
	
	  StockReceiveDao stockReceiveDao =new StockReceiveDaoImpl();
      StockDao stockDao=new  StockDaoImpl();
	@Override
	public List<StockReceive> query(String hql, String[] param) {
		// TODO Auto-generated method stub
		return stockReceiveDao.query(hql, param);
	}

	@Override
	public boolean add(StockReceive stockReceive) {
		// TODO Auto-generated method stub
		return stockReceiveDao.add(stockReceive);
	}

	@Override
	public boolean update(StockReceive stockReceive) {
		// TODO Auto-generated method stub
		return stockReceiveDao.update(stockReceive);
	}

	@Override
	public StockReceive getOne(Class c, int id) {
		// TODO Auto-generated method stub
		return stockReceiveDao.getOne(c, id);
	}

	/* (non-Javadoc)
	 * @see com.ambow.service.StockReceiveService#queryByHql(java.lang.String)
	 */
	@Override
	public List<StockReceive> queryByHql(String string) {
		// TODO Auto-generated method stub
		return stockReceiveDao.queryByHql(string);
	}

}
